package pta;

import java.util.Scanner;

/**
 * @author tmh
 * @date 2024/12/18 22:06
 * @description
 */
    public class T7_2闰年判断 {
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            int num =scanner.nextInt();
            if ((num%4==0&&num%100!=0)||num%400==0){
                System.out.println("Yes");
            }else {
                System.out.println("No");
            }
        }
    }
